package com.ericom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ericom.dao.ShippingMethodDao;
import com.ericom.model.ShippingMethod;
import com.ericom.service.ShippingMethodManager;

@Service("shippingMethodManager")
public class ShippingMethodManagerImpl extends
		GenericManagerImpl<ShippingMethod, Long> implements
		ShippingMethodManager {

	ShippingMethodDao shippingMethodDao;
    @Autowired
	public ShippingMethodManagerImpl(ShippingMethodDao shippingMethodDao) {
		super(shippingMethodDao);
		this.shippingMethodDao = shippingMethodDao;
	}

	@Override
	public List<ShippingMethod> findByName(String name) {
		
		return this.shippingMethodDao.findByName(name);
	}

}
